import request from '@/utils/request'

/**
 *  发送get 请求
 * @param url
 * @param params
 * @returns {AxiosPromise}
 */
export function requestGet(url, params) {
  return request({
    url: url,
    method: 'get',
    params: params
  })
}

/**
 * 发送 post 请求
 * @param url
 * @param data
 * @returns {AxiosPromise}
 */
export function requestPost(url, data) {
  return request({
    url: url,
    method: 'post',
    data: data
  })
}
